<?php
$newsletter_id = $articles[0]['newsletter_id'];
?>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="
font-family: Arial, sans-serif;
background-color: #afafaf;
margin: 0px;
padding: 0px;">
  <tr>
    <td>
      <table width="600" align="center" border="0" cellspacing="0" cellpadding="10" style="
      background-color: #ffffff;
      color: #1F618B;">
				<tr>
					<td background="http://www.amitavroy.com/assets/img/stripes.gif"
						style="background-image: url(http://www.amitavroy.com/assets/img/stripes.gif);
						background-repeat: repeat-x;
						width: 100%;
						height: 8px;"
						colspan="2"></td>
				</tr>
        <tr>
          <td colspan="2"><h1 style="font-size: 20px;">New post on my site</h1></td>
        </tr>
        <?php foreach ($articles as $key => $value): ?>
        <tr>
          <td width="190" valign="top"><?php echo $value['preview_image']; ?></td>
          <td valign="top">
            <h2 style="font-size: 18; font-family: Georgia, serif; margin:0px;">
							<?php echo anchor($value['node_url'] . '?nltr=' . $newsletter_id, $value['title'],'style="color:#E98F5A;
							text-decoration: none;
							font-size: 24px;"'); ?>
						</h2>
            <p style="font-size: 15; color: #000000;"><?php echo $value['body']; ?></p>
            <p><?php echo anchor($value['node_url'] . '?nltr='. $newsletter_id, 'Read full article &raquo;', 'style="color:#E98F5A; text-decoration: none; font-size: 12px;"'); ?></p>
            <br>
          </td>
        </tr>
        <?php endforeach; ?>
				<tr>
					<td colspan="2" style="font-size: 12px;">
						<p><?php echo anchor('/', 'Amitav Roy', 'style="color: #1F618B; text-decoration: none;"') ?> | <?php echo date('F nS, Y', $articles[0]['created']); ?></p>
					</td>
				</tr>

				<tr>
					<td colspan="2" style="background-color: #666666; height: 10px;"></td>
				</tr>
      </table>
    </td>
  </tr>
</table>